#include<stdio.h>
#include<math.h>
#define pi 3.14159

int main (void)
{
int n, i;
double volume, surface_area, radius, sum = 0, average;

printf("Enter the number of spheres to be processed: " );
scanf("%d", &n);

if(n>0) {
	
	for(i=1 ; i<=n ; i++){
	
	 printf("Enter volume [cubic cm] for sphere#%d: ", i);
	 scanf("%lf", &volume);

radius = pow(volume*3/(4*pi), (1.0/3)); 
surface_area = 4*pi*(radius*radius);
sum += surface_area;

	printf("Sphere#%d surface_area = %.1f square cm\n", i, surface_area);
}
	average = sum/n;
	printf("the average surface area = %.1f square cm", average);
}
	else 
	printf("Error");
	
	return 0;
}
	


	 
	
	
	




